package com.hotel.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * @author KungSu.
 * @create 2021-05-10 15:54
 * 继承于Serializable说明该类可被序列化
 */
public class Account implements Serializable {
    private Integer account_id; //编号
    private String username;//用户名
    private String password;//密码
    private Date create_day;//创建时间
    private String phone;//电话
    private String email;//邮箱
    private String sex;//性别
    private String address;//联系地址
    private String postcode;//邮编
    private Integer integral;//积分
    private Integer points;//积点
    private Integer balance;//余额
    private Integer carbon_points; //碳积分
    private int growth_value;//成长值

    @Override
    public String toString() {
        return "Account{" +
                "account_id=" + account_id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", create_day=" + create_day +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", sex='" + sex + '\'' +
                ", address='" + address + '\'' +
                ", postcode='" + postcode + '\'' +
                ", integral=" + integral +
                ", points=" + points +
                ", balance=" + balance +
                ", carbon_points=" + carbon_points +
                ", growth_value=" + growth_value +
                '}';
    }

    public Integer getAccount_id() {
        return account_id;
    }

    public void setAccount_id(Integer account_id) {
        this.account_id = account_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreate_day() {
        return create_day;
    }

    public void setCreate_day(Date create_day) {
        this.create_day = create_day;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }

    public Integer getCarbon_points() {
        return carbon_points;
    }

    public void setCarbon_points(Integer carbon_points) {
        this.carbon_points = carbon_points;
    }

    public int getGrowth_value() {
        return growth_value;
    }

    public void setGrowth_value(int growth_value) {
        this.growth_value = growth_value;
    }

    public Account(Integer account_id, String username, String password, Date create_day, String phone, String email, String sex, String address, String postcode, Integer integral, Integer points, Integer balance, Integer carbon_points, int growth_value) {
        this.account_id = account_id;
        this.username = username;
        this.password = password;
        this.create_day = create_day;
        this.phone = phone;
        this.email = email;
        this.sex = sex;
        this.address = address;
        this.postcode = postcode;
        this.integral = integral;
        this.points = points;
        this.balance = balance;
        this.carbon_points = carbon_points;
        this.growth_value = growth_value;
    }

    public Account() {
    }
}